package com.etoak.stock.mapper;

import com.etoak.stock.pojo.domin.InnerMarketDomain;
import com.etoak.stock.pojo.domin.StockBlockDomain;
import com.etoak.stock.pojo.domin.StockUpdownDomain;
import com.etoak.stock.pojo.entity.StockMarketIndexInfo;
import org.apache.ibatis.annotations.Param;
import org.joda.time.DateTime;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
* @author 孙有泽
* @description 针对表【stock_market_index_info(国内大盘数据详情表)】的数据库操作Mapper
* @createDate 2024-09-15 19:14:18
* @Entity com.etoak.stock.pojo.entity.StockMarketIndexInfo
*/
public interface StockMarketIndexInfoMapper {

    int deleteByPrimaryKey(Long id);

    int insert(StockMarketIndexInfo record);

    int insertSelective(StockMarketIndexInfo record);

    StockMarketIndexInfo selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(StockMarketIndexInfo record);

    int updateByPrimaryKey(StockMarketIndexInfo record);
    /*
    * 根据大盘的id和时间查询大盘信息
    * */
    List<InnerMarketDomain> getMarketInfo(@Param("curDateTime") Date curDateTime,@Param("inner") List<String> inner);
    /*
     * @author 孙有泽
     * @date 2024/10/23 13:24
     * @description 统计指定日期内 指定大盘每分钟的成交量流水信息
     * openDate 开始时间
     * endDate 结束时间
     */
    @SuppressWarnings("MybatisXMapperMethodInspection")
    List<Map> getSumAmtInfo(@Param("openDate") Date openDate, @Param("endDate") Date endDate, @Param("inner") List<String> inner);
    /*
     * @author 孙有泽
     * @date 2024/10/13 13:41
     * @description 大盘实体对象集合
     */
    int insertBatch(@Param("infos") List<StockMarketIndexInfo> entityList);
}
